package com.redis.nxj.util;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

/**
 * @author ningxinjie
 * @date 2021/3/29
 */
@Component
public class ApplicationContextUtils implements ApplicationContextAware {

    public static ApplicationContext ioc;

    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        ioc = applicationContext;
    }


}
